package ooday04;


import java.util.Timer;
import java.util.TimerTask;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/24
 **/
public class TimerDemo {
    public static void main(String[] args) {
        Timer timer = new Timer();
        int interval=1000;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("哇饿啊饿啊饿");
            }
        }, interval,interval);


    }


}
